package java8_26.oop.Test_2;


public class Plane_test {
    public static void main(String[] args) {
        Pilot p=new Pilot("赵鹏程");
        Pilot p1=new Pilot("赵凯");
        Plane p2=new BattlePlane(157.8,1700.0,50);
        Plane p3=new Airliner(105.8,1498.8,180);
        System.out.println(">>>>>>>>>>客机>>>>>>>>>>");
       Airliner airliner=(Airliner) p3;
       p.driver(airliner);
        p3.fly(p);
        p3.land(p);
        p3.quick(p);
        System.out.println(">>>>>>>>>>战斗机>>>>>>>>>");
        BattlePlane battlePlane=(BattlePlane) p2;
       p1.driver(battlePlane);
        p2.quick(p1);
        p2.land(p1);
        p2.fly(p1);
       ((BattlePlane) p2).launch(p1);
       ((BattlePlane) p2).spiral(p1);
    }
}